home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
5 Star Games: DOS Edition 2
/
5 Star Games - DOS Edition (1995)(Ready to Run).iso
/
dbc
/
db_conio.h
< prev
next >
Wrap
Text File
|
1992-02-28
|
1KB
|
28 lines
/****************************************************************************/
/* HEADER FILE FOR DATABOSS MODULE: DB_CONIO */
/****************************************************************************/
/******************************* INTERFACE ********************************/
#ifdef __TURBOC__
#define cwrite(s) cputs(s)
void getscreeninfo(byte *mode, byte *cols, byte *rows, byte *attr);
byte gettextattr(void);
#else
#define cwrite(s) _outtext(s)
#define textattr(a) _settextcolor(a & 0x0F); \
_setbkcolor((0xF0L & a) >> 4)
#define gettextattr() (_gettextcolor() | (byte) _getbkcolor())
#define gotoxy(x,y) _settextposition(y,x)
#define wherex() ((int) _gettextposition().col)
#define wherey() ((int) _gettextposition().row)
#define clrscr() _clearscreen(_GWINDOW)
#define textmode(m) _setvideomode(m)
void clreol(void);
void getscreeninfo(byte *mode, byte *cols, byte *rows, byte *attr);
#endif
/***************************** END OF DB_CONIO.H ****************************/